﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AspNetSimple.CHSI
{
    public class ExamResult
    {
        public bool Flag { get; set; }

        public ExamData Msg { get; set; }
    }

    public class SchoolResult
    {
        public bool Flag { get; set; }

        public SchoolData Msg { get; set; }
    }

    public class SubjectResult
    {
        public bool Flag { get; set; }

        public SubjectData Msg { get; set; }
    }

    public class Data
    {
        public int CurPage { get; set; }
        public bool NextPageAvailable { get; set; }
        public int PageCount { get; set; }
        public bool PreviousPageAvailable { get; set; }
        public int Size { get; set; }
        public int StartOfLastPage { get; set; }
        public int StartOfNextPage { get; set; }
        public int StartOfPreviousPage { get; set; }
        public int TotalCount { get; set; }
        public int TotalPage { get; set; }
    }

    public class SchoolData : Data
    {
        [JsonProperty("list")]
        public List<School> Schools { get; set; }
    }

    public class SubjectData : SchoolData
    {
        [JsonProperty("a")]
        public List<Information> Subjects { get; set; }
    }

    public class ExamData : Data
    {
        [JsonProperty("a")]
        public Information Exams { get; set; }
    }

    public class School
    {
        public string Dwdm { get; set; }
        public string Dwmc { get; set; }
        public string Ssdm { get; set; }
        public string Ssmc { get; set; }
        public List<string> Tag { get; set; }

        public string Id { get; set; }
        public string Lsfsdm { get; set; }
        public string Ksfsmc { get; set; }
        public string Yxsdm { get; set; }
        public string Yxsmc { get; set; }
        public string Zydm { get; set; }
        public string Zymc { get; set; }
        public string Zybz { get; set; }
        public string Yjfxdm { get; set; }
        public string Yjfxmc { get; set; }
        public string Zdjs { get; set; }
        public string Nzsrsstr { get; set; }
        public int Nzsrs { get; set; }
        public int Ssjstmrs { get; set; }
        public int Ssncszjh { get; set; }
        public int Cxzrs { get; set; }
        public string Kzyyjfxid { get; set; }
        public string xxfsdm { get; set; }
        public string Xxfsmc { get; set; }
        public string Gbfs { get; set; }
    }

    public class Information
    {
        public string Dwdm { get; set; }
        public string Dwmc { get; set; }
        public string Ksfsdm { get; set; }
        public string Ksfsmc { get; set; }
        public string Yxsdm { get; set; }
        public string Yxsmc { get; set; }
        public string Zydm { get; set; }
        public string Zymc { get; set; }
        public string Zybz { get; set; }
        public string Yjfxdm { get; set; }
        public string Yjfxmc { get; set; }
        public string Zdjs { get; set; }
        public string Nzsrsstr { get; set; }
        public string Kzy { get; set; }
        public string Xxfsdm { get; set; }
        public string Xxfsmc { get; set; }
        public List<object> KsfwList { get; set; }
    }

    public class ExamValue
    {
        public string SubValue { get; set; }
        public string Value { get; set; }
    }
}
